<table>
	<tr>
		<th colspan="2"><?php echo show($forum->getAction()->getTitre());?> : <?php echo show($forum->getTitre());
							if($contacter == 'enseignant' || $contacter == 'administrateur')
							{
								if($forum->getEtudiant1() != null || $forum->getEtudiant2() != null )
									echo '<a href="'.base_url().'index.php/Forums/contacter/all/all/'.$forum->getId().'">
												<button class="enveloppe" type="button"></button>
										  </a>';
							}
							if($contacter == 'etudiant')
							{
								if($forum->getEnseignant() != null || $forum->getEtudiant1() != null && $forum->getEtudiant2() != null)
									echo '<a href="'.base_url().'index.php/Forums/contacter/all/all/'.$forum->getId().'">
												<button class="enveloppe" type="button"></button>
										  </a>';
							}
						?>
										  
		</th>
	</tr>
	<tr>
		<td><b>Enseignant :</b>
			<?php 
				if ($forum->getEnseignant() != null)
				{
					echo strtoupper($forum->getEnseignant()->getNom()).' '.ucwords($forum->getEnseignant()->getPrenom());
					if($contacter == 'etudiant' || $contacter == 'administrateur')
						echo '<a href="'.base_url().'index.php/Forums/contacter/enseignant/'.$forum->getEnseignant()->getLogin().'/'.$forum->getId().'">
												<button class="enveloppe" type="button"></button>
							  </a>';
				}
			?>
			<br>
			<b>Lieu : </b><?php echo show($forum->getLieu());?>
			<br>
			<b>Nom du lycée : </b><?php echo show($forum->getNomLycee());?>
		</td>
		<td>
			<b>Date : </b>
			<?php 
				if($forum->getDate() != null)
					echo putDateJJMMAAAA($forum->getDate());
			?>
			<br>
			<b>Date limite d'inscription : </b>
			<?php 
				if($forum->getDateLimiteInscription() != null)
					echo putDateJJMMAAAA($forum->getDateLimiteInscription());
			?>
			<br>
			<br>
			<b>Heure de début : </b>
			<?php 
				if($forum->getHeureDebut() != null)
					echo putHoraireHHhMM($forum->getHeureDebut());
			?>
			<br>
			<b>Heure de fin : </b>
			<?php 
				if($forum->getHeureFin() != null)
					echo putHoraireHHhMM($forum->getHeureFin());
			?>
			<br>
			<b>Points max attribués : </b> <?php echo $forum->getNoteMax();?><br/>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<b>Participants inscrits :</b>
			<ul>
				<?php 
					if($forum->getEtudiant1() != null)
					{
						echo '<li>'.strtoupper($forum->getEtudiant1()->getNom()).' '.ucwords($forum->getEtudiant1()->getPrenom()).' '.strtoupper($forum->getEtudiant1()->getGroupe());
						if(($contacter == 'enseignant' || $contacter == 'administrateur') || ($contacter == 'etudiant' && $forum->getEtudiant1()->getId() != $utilisateur->getId()))
							echo '<a href="'.base_url().'index.php/Forums/contacter/etudiant/'.$forum->getEtudiant1()->getId().'/'.$forum->getId().'">
												<button class="enveloppe" type="button"></button>
										  </a>';
						echo '</li>';
					}
				?>
				<?php 
					if($forum->getEtudiant2() != null)
					{
						echo '<li>'.strtoupper($forum->getEtudiant2()->getNom()).' '.ucwords($forum->getEtudiant2()->getPrenom()).' '.strtoupper($forum->getEtudiant2()->getGroupe());
						if(($contacter == 'enseignant' || $contacter == 'administrateur') || ($contacter == 'etudiant' && $forum->getEtudiant2()->getId() != $utilisateur->getId()))
							echo '<a href="'.base_url().'index.php/Forums/contacter/etudiant/'.$forum->getEtudiant2()->getId().'/'.$forum->getId().'">
												<button class="enveloppe" type="button"></button>
										  </a>';
						echo '</li>';
					}
				?>
			</ul>
		</td>
	</tr>
			
	<tr>
		<td colspan="2">
			<b>Commentaire : </b><br/>
			<?php echo show($forum->getCommentaire());?>
		</td>
	</tr>
</table>